package com.xxx.video.commen.utils;

public class CountUtils {
    private static CountUtils mCountUtils = null;

    private CountUtils() {
    }

    public static CountUtils getInstance() {
        if (mCountUtils == null) {
            synchronized (CountUtils.class) {
                if (mCountUtils == null) {
                    mCountUtils = new CountUtils();
                }
            }
        }
        return mCountUtils;
    }

    public String getCount(int count) {
        if (count > 999) {
            int w = count / 10000;
            int extra = count % 10000;
            return w + "." + extra + "W";
        } else {
            return String.valueOf(count);
        }
    }
}
